<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('mood','header'); ?>
<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a>心情排行</div>
    <?php if(is_array($infos)) foreach($infos AS $r) { ?>
    <div class="cat_info">
    	<div class="cat_title">
        	<h3><img src="<?php echo $r['img'];?>" width="21" height="21" /><?php echo $r['title'];?></h3>
      	</div>
<ul class="text_list" style="height:210px;">
<?php $DATA = get("select * from phpcms_content c,phpcms_mood_data m where c.contentid=m.contentid and m.moodid='$moodid' and m.n$r[id]>0", 10, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
<li><span><?php echo $r['supports'];?></span><a href="<?php echo $r['url'];?>" target="_blank"><font class="<?php echo $r['style'];?>"><?php echo str_cut($r[title], 44);?></font></a></li>
<?php } unset($DATA); ?>
        </ul>
    </div>
    <?php } ?>
  </div>
  <div id="main_r">
    <!--广告位-->
    <div class="ad_side">
      <script language="javascript" src="data/js.php?id=5"></script>
    </div>
    <h4>最新图片文章</h4>
    <div>
      <ul class="pic_list">
        <?php echo tag('phpcms', 'tag_content_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!='' ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 4, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '14',  'height' => '62',  'width' => '87',));?>
      </ul>
    </div>
    <h4>最新推荐</h4>
    <div>
      <ul class="text_list">
    <?php $DATA = get("select * from phpcms_content where posids=1 and status=99 order by contentid desc", 20, 0, "", "");foreach($DATA AS $n => $r) { $n++;?>
<li><span><?php echo $r['supports'];?></span><a href="<?php echo $r['url'];?>" target="_blank"><font class="<?php echo $r['style'];?>"><?php echo str_cut($r[title], 44);?></font></a></li>
<?php } unset($DATA); ?>
      </ul>
    </div>
<?php echo block("mood_rank", 1);?>
  </div>
</div>
<!--end main-->
<script language="JavaScript" src="count.php?contentid=<?php echo $contentid;?>"></script>
<?php include template('phpcms','footer'); ?>